﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <script type="text/javascript" language ="javascript">
        function focus_usuario() {
            document.getElementById("txtUsuario").focus();
        }
    </script>
    <title>CHILIS - MARKETING</title>
    <link href="Styles/MiEstiloLogin.css" rel="stylesheet" type="text/css" />
</head>
<body onLoad="focus_usuario()">
    <form id="frmLogin" runat="server">
    <div id="contenedor" align="center">
        <table>
            <tr>
                <td width="10px"></td>
                <td width="80px"></td>
                <td width="11px"></td>
                <td width="200px"></td>
                <td width="10px"></td>
            </tr>
            <tr>
                <td colspan="5" align="center">
                    <img src="/Chilis.Marketing/Img/bannerLogin.png" alt="logo">
                </td>
            </tr>
            <tr>
                <td colspan="5">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td></td>
                <td class="td_campoRegItem">
                    <asp:Label ID="lblUsuario" runat="server" Text="Usuario"></asp:Label>
                </td>
                <td>:</td>
                <td>
                    <asp:textbox ID="txtUsuario" runat="server" style="text-transform :uppercase" CssClass="txtFiltro" Width="100%" ValidationGroup="guardar"></asp:textbox>
                </td>
                <td></td>
            </tr>

            <tr>
                <td></td>
                <td></td>
                <td></td>
                <td align="left">
                     <asp:RequiredFieldValidator ID="rfvUsuario" 
                                                runat="server"
                                                CssClass="cv_req_error"
                                                ErrorMessage="El Usuario es necesario." 
                                                ControlToValidate="txtUsuario"
                                                ValidationGroup="guardar">
                    </asp:RequiredFieldValidator>
                </td>
                <td></td>
            </tr>
            <%--<tr>
                <td colspan="5" class="td_alto">
                </td>
            </tr>--%>

                
            <tr>
                <td></td>
                <td class="td_campoRegItem">
                    <asp:Label ID="lblPassword" runat="server" Text="Constraseña"></asp:Label>
                </td>
                <td>:</td>
                <td>
                    <asp:textbox ID="txtContrasenha" runat="server" CssClass="txtFiltro" Width="100%" TextMode="Password" ValidationGroup="guardar"></asp:textbox>
                </td>
                <td></td>
            </tr>

            <tr>
                <td></td>
                <td></td>
                <td></td>
                <td align="left">
                     <asp:RequiredFieldValidator ID="rfvContrasenha" 
                                                runat="server"
                                                CssClass="cv_req_error"
                                                ErrorMessage="La Contraseña es necesaria." 
                                                ControlToValidate="txtContrasenha"
                                                ValidationGroup="guardar">
                    </asp:RequiredFieldValidator>
                    <br />
                    <asp:Label ID="lblMsjeError" runat="server" Text="" CssClass="cv_req_error" Visible="false"></asp:Label>
                </td>
                <td></td>
            </tr>
            <%--<tr>
                <td colspan="5">
                    &nbsp;
                </td>
            </tr>--%>

            <tr>
                <td colspan="5" class="BarraBotones" align="right">
                    <asp:Button ID="btnIngresar" runat="server" Text="Ingresar" CssClass="boton" ValidationGroup="guardar"
                        onclick="btnIngresar_Click" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>

</html>
